package com.zeny.coding.service;



import com.zeny.coding.dto.PageDto;
import com.zeny.coding.dto.TeacherDto;
import com.zeny.coding.entity.Teacher;

import java.util.List;

public interface TeacherService {
    /**
     * <h2>分页查询</h2>
     * @param pageInfo
     **/
    void list(PageDto<TeacherDto> pageInfo);

    /**
     * <h2>保存讲师</h2>
     * @param teacherDto
     **/
    void save(TeacherDto teacherDto);

    /**
     * <h2>修改讲师</h2>
     * @param teacherDto
     **/
    void update(TeacherDto teacherDto);

    /**
     * <h2>根据id查询讲师</h2>
     * @param id
     **/
    TeacherDto findById(String id);

    /**
     * <h2>根据id删除讲师</h2>
     * @param id
     **/
    void deleteById(String id);

    /**
     * <h2>查找所有的讲师</h2>
     * @param
     **/
    List<TeacherDto> findAll();

}
